<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 150px;
            height: 100px;
            background-color: rgba(0, 0, 0, 0.5);
            position: relative;
            margin: 100px auto;
        }
        .box img{
            width: 150px;
            height: 100px;
        }
        .box:hover::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.5);
        }
        .box span{
            position: absolute;
            width: 50px;
            height: 50px;
            top: 50%;
            left: 50%;
            margin-left: -25px;
            margin-top: -25px;
            background-image: url("../html+css/images/04-2.avif");
            background-size: cover;
            display: none;
        }
        .box:hover span{
            display: block;
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="../html+css/images/04-1.webp" alt="">
        <span></span>
    </div>
</body>
</html>
